package com.my.bean;

/**
 * @author: marshal
 * @date: 2023-05-15 15:26
 */
public class User {
    private String name;
    private Integer age;

    public User() {
        System.out.println("0: 无参构造函数执行了.");
    }
    public User(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
